@import '../global/variables.css';

.services {
  max-width: calc(calc(var(--ring-unit) * 50) + 2px);
  padding: calc(var(--ring-unit) * 4) calc(var(--ring-unit) * 4) calc(var(--ring-unit) * 3);

  background-color: var(--ring-navigation-background-color);

  line-height: 10px; /* Eliminate gap between clickable blocks rows */
}

.active {
  font-weight: var(--ring-font-weight-bold);
}

.item {
  display: inline-block;
  overflow-x: hidden;

  box-sizing: border-box;
  width: calc(var(--ring-unit) * 14);
  height: calc(var(--ring-unit) * 14);

  text-align: center;
  text-overflow: ellipsis;

  color: var(--ring-active-text-color);

  line-height: initial;

  &::after {
    height: calc(var(--ring-unit) * 14);

    vertical-align: middle;
  }

  &:not(:hover),
  &:visited:not(:hover) {
    color: var(--ring-active-text-color);
  }
}

.itemLogo {
  display: inline-block;

  width: calc(var(--ring-unit) * 6);
  height: calc(var(--ring-unit) * 6);
  margin: calc(var(--ring-unit) * 2) 0 calc(var(--ring-unit) + 1px);

  background-repeat: no-repeat;
  background-size: contain;
}

.activeItem {
  composes: item;
  composes: active;

  &:hover {
    color: var(--ring-active-text-color);
  }
}

.line {
  height: 1px;
  margin: calc(var(--ring-unit) * 4) 0 calc(var(--ring-unit) * 2);

  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.itemStacked {
  display: inline-block;

  width: 100%;
  margin-bottom: calc(var(--ring-unit) * 2);

  text-decoration: none;

  line-height: calc(var(--ring-unit) * 2);

  &,
  &:visited {
    color: var(--ring-secondary-color);
  }

  &:last-child {
    margin-bottom: calc(var(--ring-unit) * -3);
  }
}

.activeItemStacked {
  composes: itemStacked;
  composes: active;

  &:hover {
    color: var(--ring-secondary-color);
  }
}
